﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Client.ServiceProxies;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.Controllers
{
	public class PaymentsController : EntityController<Payment>
	{
		public PaymentsController(int customerId)
			: base(customerId)
		{
		}

		protected override IList<Payment> LoadList()
		{
			using (var serviceProxy = new PaymentServiceProxy())
			{
				return serviceProxy.GetCustomerPayments(base.ParentEntityId);
			}
		}
	}
}
